<?php
require_once(dirname(__FILE__)."/URL.class.php");
require_once(dirname(__FILE__)."/ErrorCase.class.php");

$GET_ACCESS_TOKEN_URL = "http://api.xuedu.cc/login/student";

$err = new ErrorCase();
$url = new URL();

$page = $_GET["page"]?$_GET["page"]:"1";

 //-------构造请求参数列表
$keysArr = array(
	"uid" => "110502",
	"client_id" => "xuedu.cc",
	"page" => $page
);
 
//------构造请求access_token的url
$token_url = $url->combineURL($GET_ACCESS_TOKEN_URL, $keysArr);
$response = $url->get_contents($token_url);


$obj=json_decode($response);


print_r($obj);


?>